package cc.sunni.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author jl
 * @since 2021/2/19 21:19
 */
@SpringBootApplication
@EnableEurekaClient // 开启eureka client,注册到server中
@EnableCircuitBreaker   // 开启hystrix的熔断机制
@ComponentScan(basePackages = {"cc.sunni.user", "cc.sunni.common", "cc.sunni.api"})
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
